﻿using QLNH_BUS_WS.QLNH_DAL_WS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QLNH_BUS_WS
{
    public class TableBUS
    {
        public TableDTO[] GetAllTable()
        {
            QLNH_DAL_WebServiceSoapClient ws = new QLNH_DAL_WebServiceSoapClient();
            return ws.GetAllTable();
        }

        public bool AddTable(int capacity)
        {
            QLNH_DAL_WebServiceSoapClient ws = new QLNH_DAL_WebServiceSoapClient();
            return ws.AddTable(capacity);
        }

        public bool EditTable(TableDTO tableDTO)
        {
            QLNH_DAL_WebServiceSoapClient ws = new QLNH_DAL_WebServiceSoapClient();
            return ws.EditTable(tableDTO);
        }

        public bool RemoveTable(string id)
        {
            QLNH_DAL_WebServiceSoapClient ws = new QLNH_DAL_WebServiceSoapClient();
            return ws.RemoveTable(id);
        }

        public TableDTO[] GetAllEmptyTable()
        {
            return new QLNH_DAL_WebServiceSoapClient().GetAllEmptyTable();
        }
    }
}